﻿#pragma once

#include "settings.h"

namespace anip
{
	class Font;

	namespace editor
	{
		class Whiteboard;
		class ResourceView;
		class ImageView;
		class DrawingArea;

		class WindowManager : public EditorWindow
		{
		private:
			bool alertUnsaved();

		protected:
			void processKey(Key k, ButtonAction action) override;

		public:
			WindowManager();
			using EditorWindow::mainLoop;

			wstring archivePath;
			bool fileSaved = false;

			bool loadArchive(const wstring& path);
			void saveArchive(const wstring& path);
		};
	}
}